package com.reebake.ideal.servlet.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.cors.CorsConfiguration;

import java.util.HashMap;
import java.util.Map;

/**
 * Cors全局配置
 *
 * @author 单红宇
 * @since 2025/2/18 17:18
 */
@Data
@ConfigurationProperties("mvc.cors")
public class CorsProperties {

    private Boolean enabled = false;

    private final Map<String, CorsConfiguration> configurations = new HashMap<>();
}

